﻿@model iDMS.Models.Drawing
@using MvcHtmlHelpers

<fieldset>
    <legend>Drawing</legend>
    <div class="display-label">
        Identifier</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Identifier)
    </div>
    <div class="display-label">
        Name</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>
    <div class="display-label">
        Type</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.isPartString)
    </div>
    <div class="display-label">
        Manufacturer</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Manufacturer.Name)
        @Html.CountryFlag(Model.Manufacturer.Country.ISO3166Alfa2)
        @Html.ManufacturerDetailsActionLink(Model.Manufacturer)
    </div>
    @if (!Model.Manufacturer.isHome)
    {
        <div class="display-label">
            Manufacturer Part Number</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.ManufacturerPartNo)
        </div>
    }
    <div class="display-label">
        Design Change</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.DesignChange.IndentifierAndTitle)
        @Html.DesignChangeDetailsActionLink(Model.DesignChange)
    </div>
    @if (Model.DesignChange1 != null)
    {
        <div class="display-label">
            Innaplicable Design Change</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.DesignChange1.IndentifierAndTitle)
             @Html.DesignChangeDetailsActionLink(Model.DesignChange1)
        </div>
    }
    <div class="display-label">
        Unit</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Unit.Name)
    </div>
    <div class="display-label">
        Employee</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Employee.FullNameDepartment)
        @Html.EmployeeDetailsActionLink(Model.Employee)
    </div>
    <div class="display-label">
        LastModified</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.LastModified)
    </div>
</fieldset>